package com.trkj.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.trkj.dao.jpa.IJlDoctorAdviceDAO;
import com.trkj.pojos.JlDoctorAdvice;

@Service
@Transactional
public class JlDoctorAdviceService {
	@Autowired
	private IJlDoctorAdviceDAO DoctorAdviceDAO;
	public void addJlDoctorAdvice(String daKind,String daAdvice){
		JlDoctorAdvice DoctorAdvice=new JlDoctorAdvice();
		DoctorAdvice.setDaKind(daKind);
		DoctorAdvice.setDaAdvice(daAdvice);
		DoctorAdviceDAO.save(DoctorAdvice);
    }
	public long findMaxDoctorAdvice(){
		return DoctorAdviceDAO.findMaxDoctorAdvice();
	}
}
